﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="common/taglibs.jsp" %>    
    <link href="${contextPath }/css/Index.css" rel="stylesheet" />

    <link href="${contextPath }/css/programInfo.css" rel="stylesheet" />  
<link href="${contextPath }/css/industryMoving.css" rel="stylesheet" />

 <div class="part_left" style="width:700px;">
           	<c:forEach items="${pager.data }" var="item">
            	<c:if test="${item.bidType == '1'}">
            		<div class="Trademoving">
		                <div class="messlist">
		                    <span class="zred_bid">中标</span>
		                    <label class="toptitle"><a href="Movingcontent.html" target="_blank">${item.bidName }</a></label>
		                    <label class="toptitiledate" style="float: right">2015-01-30</label>
		                </div>
		                <table class="detailmess">
		                    <tr>
		                        <td>招标地区：${item.bidArea }</td>
		                        <td>项目甲方：${item.bidPurchaser }</td>
		                        <td>代理机构：${item.bidAgent }</td>
		                    </tr>
		                    <tr>
		                        <td>招标编号：${item.bidCode }</td>
		                        <td>羡慕预算：未公开</td>
		                        <td>投标截止时间：${item.bidCuttime }</td>
		                    </tr>
		                    <tr>
		                        <td colspan ="3">${item.bidDesc }</td>
		
		                    </tr>
		                </table>
	            	</div>
            	</c:if>
            	<c:if test="${item.bidType == '2'}">
	            	<div class="Trademoving">
		                <div class="messlist">
		                    <span class="z_bid">招标</span>
		                    <label class="toptitle"><a href="Movingcontent.html" target="_blank">${item.bidName }</a></label>
		                    <label class="toptitiledate" style="float: right">2015-01-30</label>
		                </div>
		                <table class="detailmess">
		                    <tr>
		                        <td>招标地区：${item.bidArea }</td>
		                        <td>项目甲方：${item.bidPurchaser }</td>
		                        <td>代理机构：${item.bidAgent }</td>
		                    </tr>
		                    <tr>
		                        <td>招标编号：${item.bidCode }</td>
		                        <td>羡慕预算：未公开</td>
		                        <td>投标截止时间：${item.bidCuttime }</td>
		                    </tr>
		                    <tr>
		                        <td colspan ="3">${item.bidDesc }</td>
		
		                    </tr>
		                </table>
	            	</div>
            	</c:if>
            	<c:if test="${item.bidType == '3'}">
            		<div class="Trademoving">
		                <div class="messlist">
		                    <span class="f_bid">废标</span>
		                    <label class="toptitle"><a href="Movingcontent.html" target="_blank">${item.bidName }</a></label>
		                    <label class="toptitiledate" style="float: right">2015-01-30</label>
		                </div>
		                <table class="detailmess">
		                    <tr>
		                        <td>招标地区：${item.bidArea }</td>
		                        <td>项目甲方：${item.bidPurchaser }</td>
		                        <td>代理机构：${item.bidAgent }</td>
		                    </tr>
		                    <tr>
		                        <td>招标编号：${item.bidCode }</td>
		                        <td>羡慕预算：未公开</td>
		                        <td>投标截止时间：${item.bidCuttime }</td>
		                    </tr>
		                    <tr>
		                        <td colspan ="3">${item.bidDesc }</td>
		
		                    </tr>
		                </table>
	            	</div>
            	</c:if>
            </c:forEach>
            
        </div>

        <div class="movingmore">

            <a href="javascript:void(0)" onclick="moremovings();" class="morder">显示余下[<span class="movingcount">1123</span>]条行业动态</a>
        </div>
        
        <script>
        
        	var bidInfo = {
        			currentPage:2,
        			appendone:function(item){
        				this.list.push(item);
        			},
        			list:new Array(),
        			render:function(){
        				var $html = "";
        				for(var item in this.list){
        					//TODO
        				}
        				this.list.length = 0;
        				this.currentPage = this.currentPage +1;
        			},
        			click:function(){
			        	$.get('${contextPath}/project/loadajax.htm',{currentPage:bidInfo.currentPage},function(data){
			        		var pager = data.pager;
			        		for(var item in pager.data){
			        			bidInfo.appendone(item);
			        		}
			        		bidInfo.render();
			        	});
        			}
        	};
	      //瀑布流加载。。。。。。。。。。。。。。。。。。。。
	        var size = 4;//每次要显示的张数
	        var scrolls = 0;//滚动次数
	        var pageindex = 0;//从第几张开始加载
	        var data = [{ "src": "../images/moving/m1.png" }, { "src": "../images/moving/m2.png" }, { "src": "../images/moving/m3.png" }, { "src": "../images/moving/m4.png" }, { "src": "../images/moving/m1.png" }, { "src": "../images/moving/m2.png" }, { "src": "../images/moving/m3.png" }, { "src": "../images/moving/m4.png" }, { "src": "../images/moving/m1.png" }, { "src": "../images/moving/m2.png" }, { "src": "../images/moving/m3.png" }, { "src": "../images/moving/m4.png" }, { "src": "../images/moving/m1.png" }, { "src": "../images/moving/m2.png" }, { "src": "../images/moving/m3.png" }, { "src": "../images/moving/m4.png" }, { "src": "../images/moving/m1.png" }, { "src": "../images/moving/m2.png" }, { "src": "../images/moving/m3.png" }, { "src": "../images/moving/m4.png" }];
	        function getimg() {
	            
	            for (pageindex; pageindex < data.length; pageindex++) {
	
	                var contentlist = "";
	                contentlist += "<div class=\"Trademoving\"><div class=\"imageinfo\"><img src=\"" + data[pageindex].src + "\"/></div><div class=\"txtmess\"><span class=\"usertype\">用户</span> <strong>王健林如何了解移动互联网？开会</strong><br><div class=\"fontlabel\"><label> 据俄罗斯战略和技术分析中心网站2月19日报道,印尼成为中国著据俄罗斯战略和技术分析中心网站2月19日报道,印尼成为中国著 ...</label> </div></div><div class=\"spanmess\"><span>标签：</span><label>商业</label><label>行业</label><label>互联网</label></div></div>";
	
	
	                $(".part_left").append(contentlist);
	                if (pageindex == ((size * (scrolls + 1)) - 1)) {
	                    scrolls++;
	                    pageindex++;
	                    return false;
	                }
	            }
	        }
	
	
	
	
	        //查看更多
	        function moremovings() {
	
	
	
	            getimg();
	
	
	        };
        </script>